package com.songcha.module_bookdetail.ui.activity.detail

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_business.bean.book.BookDetailNetBean
import com.songcha.module_bookdetail.bean.BookCommentListBean
import com.songcha.module_task.api.BookDetailApiManager
import io.reactivex.Observable

class BookDetailRepository:BaseRepository() {
    fun getBookDetail(bookId:String):Observable<BookDetailNetBean>{
        return BookDetailApiManager.api.getBookDetail(bookId)
    }

    fun getBookCommentList(bookId:String,curPage:Int,pageSize:Int):Observable<BookCommentListBean>{
        return BookDetailApiManager.api.getBookCommentList(bookId.toInt(),curPage,pageSize)
    }
}